package one.stand.util;

import org.apache.commons.lang3.StringUtils;

/**
 * @author cjr
 */
public class OneStringUtils {
    public static String photoResize(String photo) {
        return StringUtils.isNoneBlank(photo) ? photo + "?x-oss-process=image/resize,w_300" : StringUtils.EMPTY;
    }

    public static String photoResize8(String photo) {
        return StringUtils.isNoneBlank(photo) ? photo + "?x-oss-process=image/resize,w_800" : StringUtils.EMPTY;
    }

    public static String photoResizeShareH5(String photo) {
        return StringUtils.isNoneBlank(photo) ? photo + "?x-oss-process=image/resize,w_100" : StringUtils.EMPTY;
    }
}
